Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | const router = require('./../../../src/routes/index'); |
||
4 | test('GET homepage', (done) => { |
||
5 | const request = { |
||
6 | method: 'GET', |
||
7 | url: '/', |
||
8 | }; |
||
9 | const response = { |
||
10 | redirect: (targetUrl) => { |
||
11 | expect(targetUrl).toMatch(/.+/); |
||
12 | done(); |
||
13 | }, |
||
14 | }; |
||
15 | |||
16 | router.handle(request, response); |
||
17 | }); |
||
18 | |||
65 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.